package org.lds.scheduled.job.client.enums;


import org.lds.scheduled.job.common.enums.ErrCodeEnum;

public enum ClientErrorEnum implements ErrCodeEnum {
    JOB_KEY_NOT_NULL("JOB_KEY_NOT_NULL", "job key不能为空[ScheduledJob]"),
    JOB_KEY_REPEAT("JOB_KEY_REPEAT", "job key重复[ScheduledJob]"),
    JOB_KEY_NOT_EXIST("JOB_KEY_NOT_EXIST", "job key不存在[ScheduledJob]"),
    METHOD_INVOKE_FAIL("METHOD_INVOKE_FAIL", "method invoke fail[ScheduledJob]"),

    REGISTER_APP_INSTANCE_FAIL("REGISTER_APP_INSTANCE_FAIL", "注册app实例失败"),
    ;

    private String code;
    private String message;

    ClientErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getErrCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return message;
    }

}
